home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Programming / yaec / modules / debuglib.e < prev    next >
Encoding:
Text File  |  2001-08-12  |  732 b   |  17 lines

  1. OPT MODULE  -> debuglib.e
  2. OPT EXPORT
  3. OPT NDDC
  4. OPT LINK 'e:linklib/debug.lib' -> whatever setup ya got..
  5. OPT XREF _KGetChar, _KCmpStr, _KGetNum, _KMayGetChar, KPutChar, KPutStr
  6.  
  7. #macro KCmpStr(string1, string2) (LONG) IS Stores(string1, string2) BUT ASM ' bsr _KStrCmp' BUT Rems(8) BUT D0
  8. #macro KGetChar() (LONG) IS ASM ' bsr _KGetChar'
  9. #macro KGetNum() (LONG) IS ASM ' bsr _KGetNum'
  10. #macro KMayGetChar() (LONG) IS ASM ' bsr _KMayGetChar'
  11. #macro KPrintF(fstr,...) (VOID) IS Stores(StringF(String(1024), fstr, ...)) BUT KPutStr(Long(A7)) BUT EndString(Long(A7)) BUT Rems(4)
  12. #macro KPutChar(char) (LONG) IS (D0 := char) BUT ASM ' bsr KPutChar'
  13. #macro KPutStr(str) (VOID) IS (A0 := str) BUT ASM ' bsr KPutStr'
  14.  
  15. /* (LS) 2001 YAEC19 */
  16.  
  17.